package cn.sumpu.app.coolsk.biz;

import java.util.List;

import cn.sumpu.app.coolsk.domain.Company;
import cn.sumpu.app.coolsk.exception.AppBusinessException;
import cn.sumpu.toolkit.common.page.PageModel;


public interface CompanyBiz {
	
	public PageModel getCompanyList(Integer page,Integer pagesize,String searchName) throws AppBusinessException;
	
	public Company getCompanyById(String id)throws AppBusinessException;
	
	public Company saveCompany(Company company)throws AppBusinessException;
	
	public boolean delCompany(String id)throws AppBusinessException;
	
	/**
	 * author BruceZhang
	 * @param name	公司名称
	 * @return	联想公司名称
	 * @throws AppBusinessException
	 */
	List<Company> getCompanyByName(String name)throws AppBusinessException;
	
}
